
**************************************************************************************************************
***************** Figure 10: Prevalence of Efficiency and Public Interest Merger Defenses	 *****************
**************************************************************************************************************

use CCL_Law_Data_Ver1.dta,clear

preserve
keep if year >1949
keep if year <2011
drop if regional_group==1
drop if competition_law_coded_ever==0
drop if competition_law_in_place==0

gen neither= 1
gen efficiency= 0
gen other= 0
gen  both= 0

replace efficiency=1 if merger_efficiency_def==1 
replace efficiency = 0 if merger_pubint_def!=0

replace other = 1 if merger_pubint_def==1
replace other=0 if  merger_efficiency_def==1 

replace both =1 if merger_efficiency_def==1 |  merger_pubint_def ==1 
replace both =0 if efficiency==1 | other==1

replace neither =0 if efficiency==1 | both==1 | other ==1

summarize efficiency other both neither if year==2010
summarize  merger_efficiency_def merger_pubint_def if year==2010


egen EFF = mean(efficiency), by(year)
egen OTHER = mean(other), by(year)
egen BOTH = mean(both), by(year)
egen NEITHER = mean(neither), by(year)

egen tag = tag(year)
twoway line EFF OTHER BOTH NEITHER year if tag, sort saving(EU_converge,replace) graphregion(color(white)) bgcolor(white) xtitle("Year") ytitle("Proportion") legend(label(1 "Efficiency Defense") label(2 "Public Interest Defense") label(3 "Both") label(4 "Neither")) lpattern(1 _ shortdash_dot longdash) xla(1950(10)2010) yla(0(.1)1.05)

